<template>
      <su-popup
        :show="show" round="32" showClose backgroundColor="#151515"
        type="center"
        :isMaskClick="false"
		@close="emits('close')"
      >
        <view class="tips-box ss-flex ss-row-center ss-flex-col">
			<image src="@/static/img/success-icon.png" mode=""></image>
			<view class="title">设置成功！  </view>
			<view class="btn" @tap="emits('close')">
				返回登录.
			</view>
        </view>
      </su-popup>
</template>

<script setup>
  import sheep from '@/sheep';
  import { computed, ref } from 'vue';
  import { onShow } from '@dcloudio/uni-app';
  import { saveAdvHistory } from '@/sheep/hooks/useModal';
  const emits = defineEmits(['change', 'addCart', 'buy', 'close']);
  const props = defineProps({
  	show: {
  		type: Boolean,
  		default: false,
  	},
  });

  function onPopup(path) {
    sheep.$router.go(path);
  }

  function onClose(index) {
    currentIndex.value = index + 1;
    popupList.value[index].isShow = false;
  }
</script>

<style lang="scss" scoped>
  .tips-box {
	padding: 70rpx 0;
	margin: 0 95rpx;
    background: #151515;
    border-radius: 32rpx;
	image{
		width: 148rpx;
		height: 113rpx;
	}
	.title{
		text-align: center;

		font-weight: 400;
		font-size: 36rpx;
		color: #FFFFFF;
		margin: 40rpx 0;
	}
	.btn{
		width: 400rpx;
		height: 80rpx;
		margin: auto;
		background: linear-gradient(90deg, #45C9F0, #36F6AF);
		border-radius: 40rpx;
		text-align: center;
		line-height: 80rpx;

		font-weight: 500;
		font-size: 32rpx;
		color: #090909;
	}
  }
</style>
